package com.whfc.emp.dao;

import com.whfc.emp.dto.AppTrainingUserAnswerDTO;
import com.whfc.emp.dto.AppTrainingUserProgressDTO;
import com.whfc.emp.entity.AppTrainingUserProgress;
import com.whfc.emp.param.AppTrainingUserProgressListParam;
import com.whfc.emp.param.AppTrainingUserProgressListParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: hw
 * @date: 2021-10-22 15:24
 * @description: //todo
 */
public interface AppTrainingUserProgressMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AppTrainingUserProgress record);

    int insertSelective(AppTrainingUserProgress record);

    AppTrainingUserProgress selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppTrainingUserProgress record);

    int updateByPrimaryKey(AppTrainingUserProgress record);

    /**
     * 获取培训列表
     *
     * @param request
     * @return
     */
    List<AppTrainingUserProgressDTO> selectByParam(AppTrainingUserProgressListParam request);

    /**
     * 删除培训记录
     *
     * @param trainId
     */
    void deleteLogicById(@Param("trianId") Integer trainId);

}